@import '../../common';

.popup-container {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;

    &.active {
        .popup-shade {
            background-color: rgba(0, 0, 0, 0.65);
        }

        .popup-main {
            transform: translateY(0);
        }
    }

    .popup-shade {
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0);
        transition: all 0.35s;
    }

    .popup-main {
        width: 100%;
        position: absolute;
        left: 0;
        bottom: 0;
        background-color: #ffffff;
        border-radius: 32rpx 32rpx 0 0;
        box-sizing: border-box;
        padding: 32rpx calc(22rpx * 2);
        transform: translateY(100%);
        transition: all 0.35s;

        .popup-title {
            display: flex;
            align-items: center;
            position: relative;
            height: 64rpx;
            box-sizing: border-box;
            padding: 0 ;
            @include fontStyle(32, 32, #000000, 500);

            .popup-close {
                width: 64rpx;
                height: 100%;
                background-color: #ffffff;
                position: absolute;
                top: 0;
                right:calc(0% - 16rpx);
                display: flex;
                align-items: center;
                justify-content: center;
                &::after,
                &::before{
                    content: '';
                    width: 32rpx;
                    height: 2rpx;
                    background-color: #666666;
                    display: block;
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%,-50%);
                }
                &::before{
                    transform: translate(-50%,-50%) rotate(-45deg);
                }
                &::after{
                    transform: translate(-50%,-50%) rotate(45deg);
                }
            }
        }

        .popup-box {
            padding-bottom: env(safe-area-inset-bottom);
            margin-bottom: 216rpx;
            .poster {
                margin:  24rpx auto 40rpx auto;

                image {
                    @include size(662, 290);
                }
            }

            .current-addr {
                @include fontStyle(28, 28, #999999);
                margin-top: 40rpx;
            }

            .all-city {
                @include flex;
                flex-wrap: wrap;
                .item {                  
                    @include size(200, 80, 40rpx);
                    width: 30%;
                    @include flex-center;
                    @include fontStyle(28,28,#666666);
                    background: #F6F6F6;
                    margin-top: 40rpx;
                    margin-right: 5%;
                    &:nth-of-type(3n){
                        margin-right: 0;
                    }
                    &.active{
                        background-color: var(--color-theme);
                        color: #ffffff;
                    }
                }
            }
        }
    }
}